package org.anjan.dp.observer;

/**
 * Created by chebbaso on 12/4/14.
 */
public class APPLObserver implements Observer {
    @Override
    public void update(String stock, double price) {
        if("APPL".equals(stock))
        {
            System.out.println(this.getClass().getName() + " : stock = " + stock + " value = " + price);
        }
        else
        {
            System.out.println(this.getClass().getName() + " not interested");
        }
    }
}
